package com.cs.study.homework._0229;

import org.junit.Test;

public class Demo6 {
    @Test
    public void transfer() {
        // String---->StringBuffer
        String s = "abc";
        StringBuffer sb = new StringBuffer(s);
        System.out.println(sb.reverse());

        // StringBuffer---->String
        String s1 = sb.toString();
        System.out.println(s1);
    }
}
